<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>内边距</title>
    <style>
        #d1{
            border: 1px solid red;
            width: 200px;
            height: 200px;
            padding: 20px 30px;
        }
        #d2{
            background: palevioletred;
            height: 200px;
            width: 200px;
        }
    </style>
</head>
<body>
    <h3>边框与元素之间的距离</h3>
    <div id="d1">
        <div id="d2"></div>
    </div>
</body>
</html>